package cn.king.user.mapper;

import cn.king.user.domain.User;
import cn.king.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author King
 * @since 2023-02-07
 */
public interface UserMapper extends BaseMapper<User> {

    User getByPhone(String phone);

    User getByEmail(String email);

    void updateState(@Param("state") Integer state, @Param("id") Long id);

    User getByLogininfoId(Long id);
}
